package cn.com.ege.mvc.service.impl.business;

import java.io.Serializable;
import cn.com.ege.mvc.exception.BusinessException;
import cn.com.ege.mvc.model.business.OrderShoe;
import cn.com.ege.mvc.service.BaseService;

public class OrderShoeService extends BaseService<OrderShoe> implements Serializable{
	public void save(OrderShoe orderShoe) throws BusinessException{
		if (null != orderShoe) {
			if(null != orderShoe.getId() && 0 != orderShoe.getId()){
				update(orderShoe);
			}else{
				add(orderShoe);
			}
		}else {
			throw new BusinessException("订单的鞋子ID不能为空!");
		}
	}
}
